<template>
  <div>
    <Header/>
    <!-- 导航区域 -->
    <div class="col-xs-2 col-xs-offset-2">

			<!-- 在原始html中，我们靠a标签实现不同页面的切换 -->
      <!-- <a class="list-group-item" href="./about.html">About</a> -->
      <!-- <a class="list-group-item" href="./home.html">Home</a> -->

			<!-- 在Vue中，我们靠？？？实现路径的切换，进而引起组件的切换 -->
			<router-link 
				class="list-group-item" 
				active-class="active" 
				:to="{path:'/about'}"
			>
				About
			</router-link>

      <router-link 
				class="list-group-item" 
				active-class="active" 
				:to="{path:'/home'}"
			>
				Home
			</router-link>

    </div>
    <!-- 展示区 -->
    <div class="col-xs-6 panel-body">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
	import Header from './components/Header.vue'
	export default {
		name: "App",
		components:{Header}
	};
</script>